import * as dto from './DTO';
import {request, handleFetchResultNotification, REQUEST_TYPE} from '../utils';
import stringify from 'Shared/utils/stringify';
import {formatMessage} from './intl';
import {dutyUnitType, dutyUnitStatus, productCategoryType} from '../Enum';

const baseUrl = '/afterSales/api/v1';

const getListDesc = formatMessage({
    id: 'api.message.getListDesc',
    defaultMessage: '查询索赔单'
});
const getDetailDesc = formatMessage({
    id: 'api.message.getDetailDesc',
    defaultMessage: '查询索赔单详情'
});
const approveDesc = formatMessage({
    id: 'api.message.approveDesc',
    defaultMessage: '索赔单审核'
});
const abandonDesc = formatMessage({
    id: 'api.message.abandonDesc',
    defaultMessage: '索赔单作废'
});
const partQueryDesc = formatMessage({
    id: 'api.message.partQueryDesc',
    defaultMessage: '查询备件信息'
});
const getDealersDesc = formatMessage({
    id: 'api.message.getDealersDesc',
    defaultMessage: '查询服务站信息'
});
const submitDesc = formatMessage({
    id: 'api.message.submitDesc',
    defaultMessage: '提交索赔单'
});
const claimApplieQueryDesc = formatMessage({
    id: 'api.message.claimApplieQueryDesc',
    defaultMessage: '索赔申请单查询'
});
const getClaimApplieDetailDesc = formatMessage({
    id: 'api.message.getClaimApplieDetailDesc',
    defaultMessage: '索赔申请单详情查询'
});
const subClaimQueryDesc = formatMessage({
    id: 'api.message.subClaimQueryDesc',
    defaultMessage: '二级服务站索赔单'
});
const faultModeQueryDesc = formatMessage({
    id: 'api.message.faultModeQueryDesc',
    defaultMessage: '故障原因查询'
});
const getVehicleSoldsDesc = formatMessage({
    id: 'api.message.getVehicleSoldsDesc',
    defaultMessage: '车辆档案查询'
});
const getDutyUnitsDesc = formatMessage({
    id: 'api.message.getDutyUnitsDesc',
    defaultMessage: '责任单位查询'
});
const exportDesc = formatMessage({
    id: 'api.message.exportDesc',
    defaultMessage: '导出'
});
const getHistoryListDesc = formatMessage({
    id: 'api.getHistoryListDesc',
    defaultMessage: '查询历史信息'
});

const getHistoryDetailDesc = formatMessage({
    id: 'api.getHistoryDetailDesc',
    defaultMessage: '查询历史详情'
});
const getPartCategoryQuicklyDesc = formatMessage({
    id: 'api.getPartCategoryQuicklyDesc',
    defaultMessage: '查询备件分类'
});
const getWorkItemsDesc = formatMessage({
    id: 'api.getWorkItemsDesc',
    defaultMessage: '查询维修项目'
});
const getClaimReasonDesc = formatMessage({
    id: 'api.message.getClaimReasonDesc',
    defaultMessage: '查询索赔原因'
});
const getWarrantyPolicyDesc = formatMessage({
    id: 'api.message.getWarrantyPolicyDesc',
    defaultMessage: '整车索赔政策校验'
});
const faultItemQueryDesc = formatMessage({
    id: 'api.faultItemQueryDesc',
    defaultMessage: '查询故障代码'
});
const newDesc = formatMessage({
    id: 'api.message.newDesc',
    defaultMessage: '新增索赔单'
});
const updateDesc = formatMessage({
    id: 'api.message.updateDesc',
    defaultMessage: '修改索赔单'
});
const adjustDataDesc = formatMessage({
    id: 'api.message.adjustDataDesc',
    defaultMessage: '调整索赔单'
});
const getMgmtRatesDesc = formatMessage({
    id: 'api.message.getMgmtRatesDesc',
    defaultMessage: '管理费率查询'
});
const importTempDesc = formatMessage({
    id: 'api.message.importTempDesc',
    defaultMessage: '批量导入模板'
});
const autoDataDesc = formatMessage({
    id: 'api.message.autoDataDesc',
    defaultMessage: '自动审核'
});

const workItemsQueryDesc = formatMessage({
    id: 'api.message.workItemsQueryDesc',
    defaultMessage: '查询维修项目'
});
const getPartServicePricesDesc = formatMessage({
    id: 'api.message.getPartServicePricesDesc',
    defaultMessage: '查询索赔材料价格'
});
const subClaimDetailDesc = formatMessage({
    id: 'api.message.subClaimDetailDesc',
    defaultMessage: '查询二级服务站索赔详情'
});
const partsQueryDesc = formatMessage({
    id: 'api.message.partsQueryDesc',
    defaultMessage: '查询维修辅料'
});
const newAndSubmitOrderDesc = formatMessage({
    id: 'api.message.newAndSubmitOrderDesc',
    defaultMessage: '新增并提交索赔单'
});
const modifyAndSubmitOrderDesc = formatMessage({
    id: 'api.message.modifyAndSubmitOrderDesc',
    defaultMessage: '修改并提交索赔单'
});
const getCheckDesc = formatMessage({
    id: 'api.message.getCheckDesc',
    defaultMessage: '保存校验'
});
const getAutoListDesc = formatMessage({
    id: 'api.message.getAutoListDesc',
    defaultMessage: '查询自动审核日志'
});
const getAutoDetailDesc = formatMessage({
    id: 'api.message.getAutoDetailDesc',
    defaultMessage: '查询自动审核日志详情'
});
const getApproveListDesc = formatMessage({
    id: 'api.message.getApproveListDesc',
    defaultMessage: '查询索赔单'
});
const subDealersQueryDesc = formatMessage({
    id: 'api.message.subDealersQueryDesc',
    defaultMessage: '查询经销商'
});

//初始化
export const getInitData = () => request(`${baseUrl}/ui/claim/init`, null, dto.InitDataStruct)
    .then(handleFetchResultNotification(REQUEST_TYPE.initQuery, getListDesc));
// 查询订单列表
export const getList = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/claims/forCurrentUser?${queryString}`, null, dto.List)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getListDesc));
};
// 查询详情
export const getDetail = (id, pageOption) => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/claims/${id}?${queryString}`, null, dto.Detail)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getDetailDesc));
};
    
//新增
export const newOrder = data => request(`${baseUrl}/claims`, {
    method: 'POST',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, newDesc));
//修改
export const modifyOrder = (id, data) => request(`${baseUrl}/claims/${id}`, {
    method: 'PUT',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, updateDesc));
//新增并提交
export const newAndSubmitOrder = data => request(`${baseUrl}/claims/submit`, {
    method: 'POST',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, newAndSubmitOrderDesc));
//修改并提交
export const modifyAndSubmitOrder = (id, data) => request(`${baseUrl}/claims/submit/${id}`, {
    method: 'PUT',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, modifyAndSubmitOrderDesc));
//提交
export const submitData = (id, data) => request(`${baseUrl}/claims/${id}/submit`, {
    method: 'PUT',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, submitDesc));
//审核通过
export const approveData = (id, data) => request(`${baseUrl}/claims/${id}/pass`, {
    method: 'PUT',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, approveDesc));
//审核驳回
export const rejectData = (id, data) => request(`${baseUrl}/claims/${id}/reject`, {
    method: 'PUT',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, approveDesc));
//审核拒赔
export const refuseData = (id, data) => request(`${baseUrl}/claims/${id}/refuse`, {
    method: 'PUT',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, approveDesc));
//调整
export const adjustData = (id, data) => request(`${baseUrl}/claims/${id}/adjust`, {
    method: 'PUT',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, adjustDataDesc));
//作废
export const abandonData = (id, data) => request(`${baseUrl}/claims/${id}/abandon`, {
    method: 'PUT',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, abandonDesc));
//导出
export const exportData = id => request(`${baseUrl}/claims/${id}/export`, null).then(handleFetchResultNotification(REQUEST_TYPE.submit, exportDesc));

// 快捷查询二级服务站
export const getDealersQuickly = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/dealers/forClaim/simple?${queryString}`, null, dto.DealerSimpleList)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getDealersDesc));
};
// 查询二级服务站
export const getDealers = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/dealers/forClaim?${queryString}`, null, dto.DealerList)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getDealersDesc));
};

//索赔申请单查询
export const claimApplieQuery = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/claimApplies/forClaim?${queryString}`, null, dto.SelectList)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, claimApplieQueryDesc));
};
// 查询详情
export const claimApplieDetail = id =>
    request(`${baseUrl}/claimApplies/${id}`, null, dto.Detail)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getClaimApplieDetailDesc));
//二级服务站索赔单
export const subClaimQuery = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/subClaims/forClaim?${queryString}`, null, dto.SelectList)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, subClaimQueryDesc));
};
// 查询详情
export const subClaimDetail = id =>
    request(`${baseUrl}/subClaims/${id}`, null, dto.Detail)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, subClaimDetailDesc));
//故障原因查询
export const faultModeQuery = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/faultModes?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, faultModeQueryDesc));
};
//故障原因快捷查询
export const faultModeQuickly = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/faultModes/simple?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, faultModeQueryDesc));
};
//服务站备件查询
export const partQuery = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/parts/forClaim?${queryString}`, null, dto.SelectList)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, partQueryDesc));
};
// 快捷查询车辆档案
export const getVehicleSoldsQuickly = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/vehicleSolds/simple?${queryString}`, null, dto.SelectList)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getVehicleSoldsDesc));
};
// 查询车辆档案
export const getVehicleSolds = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/vehicleSolds?${queryString}`, null, dto.SelectList)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getVehicleSoldsDesc));
};
// 快捷查询责任单位
export const getDutyUnitsQuickly = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/dutyUnits/base/simple?${queryString}`, null, dto.SelectList)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getDutyUnitsDesc));
};
// 查询责任单位
export const getDutyUnits = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/dutyUnits/base?${queryString}`, null, dto.SelectList)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getDutyUnitsDesc));
};
//历史查询
export const getHistoryList = condition => {
    const queryString = stringify(condition);
    return request(`${baseUrl}/claimHistories/forCurrentUser?${queryString}`, null, dto.HistoryList)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getHistoryListDesc));
};
//历史查询详情
export const getHistoryDetail = id => request(`${baseUrl}/claimHistories/${id}`, null, dto.HistoryDetail)
    .then(handleFetchResultNotification(REQUEST_TYPE.query, getHistoryDetailDesc));

// 快捷查询备件分类
export const getPartCategoryQuickly = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/partCategories/simple?${queryString}`, null, dto.SelectList)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getPartCategoryQuicklyDesc));
};
// 查询备件分类
export const getPartCategory = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/partCategories?${queryString}`, null, dto.SelectList)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getPartCategoryQuicklyDesc));
};
// 查询万能工时
export const getWorkItems = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/workItems/forClaim?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getWorkItemsDesc));
};
//查询故障代码
export const faultItemQuery = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/faultItems?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, faultItemQueryDesc));
};
//故障代码快捷查询
export const faultItemQuickly = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/faultItems/simple?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, faultItemQueryDesc));
};
//历史查询
export const getcClaimHistoriesList = condition => {
    const queryString = stringify(condition);
    return request(`${baseUrl}/claims/forClaimHistory?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getHistoryListDesc));
};
//索赔原因
export const getClaimReason = condition => {
    const queryString = stringify(condition);
    return request(`${baseUrl}/claimReasons?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getClaimReasonDesc));
};
//政策校验
export const getWarrantyPolicy = data => request(`${baseUrl}/warrantyPolicies/forClaim`, {
    method: 'POST',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.query, getWarrantyPolicyDesc));
//管理费率
export const getMgmtRates = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/mgmtRates?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getMgmtRatesDesc));
};

export const claimImportTemp = () => request(`${baseUrl}/claims/importTemp`)
    .then(handleFetchResultNotification(REQUEST_TYPE.submit, importTempDesc)).then(res => res.data);
//自动审核
export const autoData = () => request(`${baseUrl}/claims/auto`, null, null)
    .then(handleFetchResultNotification(REQUEST_TYPE.query, autoDataDesc));

//查询维修项目
export const workItemsQuery = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/workItems/query?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, workItemsQueryDesc));
};
//索赔材料价格查询
export const getPartServicePrices = data => request(`${baseUrl}/partServicePrices/forClaim`, {
    method: 'POST',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.query, getPartServicePricesDesc));

//查询辅料
export const partAssistQuery = data => request(`${baseUrl}/parts/query`, {
    method: 'POST',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, partsQueryDesc));

//查询导出
export const queryExport = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/claims/export/forCurrentUser?${queryString}`)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, exportDesc))
        .then(res => res.data);
};
//历史导出
export const queryHistoryExport = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/claimHistories/export/forCurrentUser?${queryString}`)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, exportDesc))
        .then(res => res.data);
};
//历史附件下载
export const getHistoryDownload = data => {
    const queryString = stringify(data);
    return request(`${baseUrl}/files/ftpIsDownload?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, null));
};

//审核调整保存校验
export const getCheck = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/claims/check?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getCheckDesc));
};
// 查询责任单位
export const getDutyUnitLists = () =>
    request(`${baseUrl}/dutyUnits?pageIndex=0&pageSize=100&status=${dutyUnitStatus.生效}&type=${dutyUnitType.责任单位}`, null, dto.SelectList)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getDutyUnitsDesc));

const productCategoryQueryDesc = formatMessage({
    id: 'api.message.productCategoryQueryDesc',
    defaultMessage: '查询车型信息'
});
export const productCategoryQuery = () =>
    request(`${baseUrl}/productCategories?type=${productCategoryType.车型}&isAll=true`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, productCategoryQueryDesc));


// 查询日志列表
export const getAutoList = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/claimAutoApproveHises?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getAutoListDesc));
};
// 查询日志详情
export const getAutoDetail = (id, pageOption) => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/claimAutoApproveHises/${id}?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getAutoDetailDesc));
};

// 查询批量审核的维修索赔单
export const getApproveList = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/claims/forApprove?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getApproveListDesc));
};
// 查询选中的批量审核的维修索赔单
export const getApproveDetailList = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/claims/forApprove/details?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getApproveListDesc));
};
//审核通过
export const approveAllData = data => request(`${baseUrl}/claims/passAll`, {
    method: 'PUT',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, approveDesc));
//审核驳回
export const rejectAllData = data => request(`${baseUrl}/claims/rejectAll`, {
    method: 'PUT',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, approveDesc));
//审核拒赔
export const refuseAllData = data => request(`${baseUrl}/claims/refuseAll`, {
    method: 'PUT',
    headers: {'Content-Type': 'application/json'},
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, approveDesc));

//批量审核保存校验
export const getCheckMore = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/claims/checkMore?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, getCheckDesc));
};

//查询经销商
export const subDealersQuery = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/subDealers?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, subDealersQueryDesc));
};
//经销商快捷查询
export const subDealersQuickly = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/subDealers/simple?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, subDealersQueryDesc));
};
//查询备件维修项目
export const workItemsPartQuery = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/workItems/forClaimPart?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, workItemsQueryDesc));
};
//结算导出
export const settlementExport = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/claims/settlementExport/forCurrentUser?${queryString}`)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, exportDesc))
        .then(res => res.data);
};

export const productCategory = pageOption => {
    const queryString = stringify(pageOption);
    return request(`${baseUrl}/productCategories?${queryString}`, null, null)
        .then(handleFetchResultNotification(REQUEST_TYPE.query, productCategoryQueryDesc));
};
const addDesc = formatMessage({
    id: 'api.message.addDesc',
    defaultMessage: '新增供应商'
});
// 新增
export const addSupplierInfo = data => request(`${baseUrl}/dutyUnits/claim`, {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        ...data,
        type: dutyUnitType.索赔供应商
    })
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, addDesc));


const downloadDesc = formatMessage({
    id: 'api.message.downloadDesc',
    defaultMessage: '请稍后在此文件夹下查看附件:'
});
const downloadDesc1 = formatMessage({
    id: 'api.message.downloadDesc1',
    defaultMessage: '下载'
});
//批量下载
export const downloadInfo = data => request(`${baseUrl}/claims/download`, {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, downloadDesc + data.filePath + downloadDesc1));

const uploadDesc = formatMessage({
    id: 'api.message.uploadDesc',
    defaultMessage: '附件'
});
// 新增
export const uploadInfo = data => request(`${baseUrl}/claims/upload`, {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify(data)
}).then(handleFetchResultNotification(REQUEST_TYPE.submit, uploadDesc));
